<div class="row">
    <div class="col-xs-12">
        <div class="panel panel-midnightblue">
            <div class="panel-heading"><h4>员工新增</h4></div>
            <div class="panel-body">
                <form action="" class="form-horizontal row-border"  data-validate="parsley" id="validate-form">
                	
                	<div class="form-group">
                        <label class="col-sm-3 control-label">卡号:</label>
                        <div class="col-sm-6">
                            <input type="text" name="card_no" value="{$model.card_no1}" placeholder="卡号" required="required" class="form-control">
                        </div>
                    </div>
                    
                    <div class="form-group">
                    	<label class="col-sm-3 control-label" >持卡人类型:</label>
                    	<div class="col-sm-6">
                    		<select class="form-control" name="owner_type">
                    			<option value="1" {if condition="$model.owner_type eq 1"}selected{/if} >会员</option>
                    			<option value="2" {if condition="$model.owner_type eq 2"}selected{/if} >员工</option>
                    		</select>
                    	</div>
                    </div>
                    
                    
                    <div class="form-group">
                    	<label class="col-sm-3 control-label">指纹数据</label>
                    	<div class="col-sm-6">
                    		<textarea class="form-control" name="fingerprint">{$model.fingerprint}</textarea>
                    	</div>
                    </div>
                    
                     <div class="form-group">
                    	<label class="col-sm-3 control-label" >有效期开始（格式yyyy-MM-dd HH:mm:ss）:</label>
                    	<div class="col-sm-6">
                    		 <input type="text" name="start_date"  value="{$model.start_date}" placeholder="开始有效期" required="required" class="form-control">
                    	</div>
                    </div>
                    
                    
                     <div class="form-group">
                    	<label class="col-sm-3 control-label" >有效期结束（格式yyyy-MM-dd yyyy-MM-dd HH:mm:ss）:</label>
                    	<div class="col-sm-6">
                    		 <input type="text" name="effect_date" value="{$model.effect_date}" placeholder="有效期结束" required="required" class="form-control">
                    	</div>
                    </div>
                    
                    <div class="form-group">
                        <label class="col-sm-3 control-label">剩余次数:</label>
                        <div class="col-sm-6">
                            <input type="number" name="surplus"  value="{$model.surplus}" placeholder="剩余次数"  class="form-control">
                        </div>
                    </div>
                    
                    <div class="form-group">
                    	<label class="col-sm-3 control-label" >入场验证指纹:</label>
                    	<div class="col-sm-6">
                    		<select class="form-control" name="in_varifycation">
                    			<option value="0" {if condition="$model.in_varifycation eq 0"}selected{/if} >否</option>
                    			<option value="1" {if condition="$model.in_varifycation eq 1"}selected{/if} >是</option>
                    		</select>
                    	</div>
                    </div>    
                    
                    <div class="form-group">
                    	<label class="col-sm-3 control-label" >出场验证指纹:</label>
                    	<div class="col-sm-6">
                    		<select class="form-control" name="out_varifycation">
                    			<option value="0" {if condition="$model.out_varifycation eq 0"}selected{/if} >否</option>
                    			<option value="1" {if condition="$model.out_varifycation eq 1"}selected{/if} >是</option>
                    		</select>
                    	</div>
                    </div>   
                    
                    <div class="form-group">
                    	<label class="col-sm-3 control-label" >剩余进场次数限制:</label>
                    	<div class="col-sm-6">
                    		<select class="form-control" name="in_surplus_limt">
                    			<option value="0" {if condition="$model.in_surplus_limt eq 0"}selected{/if}>否</option>
                    			<option value="1" {if condition="$model.in_surplus_limt eq 1"}selected{/if} >是</option>
                    		</select>
                    	</div>
                    </div>    
                    
                    <div class="form-group">
                    	<label class="col-sm-3 control-label" >进场后剩余次数减一:</label>
                    	<div class="col-sm-6">
                    		<select class="form-control" name="in_surplus_sub">
                    			<option value="0" {if condition="$model.in_surplus_sub eq 0"}selected{/if}  >否</option>
                    			<option value="1" {if condition="$model.in_surplus_sub eq 1"}selected{/if}  >是</option>
                    		</select>
                    	</div>
                    </div>   
                    
                     <div class="form-group">
                    	<label class="col-sm-3 control-label" >员工状态:</label>
                    	<div class="col-sm-6">
                    		<select class="form-control" name="status">
                    			<option value="0" {if condition="$model.status eq 0"}selected{/if} >无效</option>
                    			<option value="1" {if condition="$model.status eq 1"}selected{/if} >有效</option>
                    		</select>
                    	</div>
                    </div>  
                    
                    
                    
                    <div class="form-group">
                    		<label class="col-sm-3 control-label" for="nick_name">手机号码:</label>
                    		<div class="col-sm-6">
                    			<input type="text" placeholder="手机号码"   name="mobile" class="form-control"  value="{$model.mobile}"/>
                    		</div>
                    	</div>
                    	
                    
                    <div class="form-group">
                    		<label class="col-sm-3 control-label" for="nick_name">姓名:</label>
                    		<div class="col-sm-6">
                    			<input type="text" placeholder="姓名"  name="name" class="form-control"   value="{$model.name}"/>
                    		</div>
                    </div>
                    
                </form>
            </div>
            <div class="panel-footer">
                <div class="row">
                    <div class="col-sm-6 col-sm-offset-3">
                        <div class="btn-toolbar">
                            <button class="btn-primary btn" id="form-submit">提交</button>
                            <button class="btn-default btn" data-dismiss="modal">关闭</button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script type='text/javascript' src='{$Think.ADMIN_VIEW_JS}api_test/edit.js'></script>